<%@page import="com.user.entity.dto.StudentDTO"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>学校在线考试系统</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap.css" rel="stylesheet">
	<link href="css/bootstrap-table.css" rel="stylesheet">
	<link href="css/mystyle.css" rel="stylesheet">
	<link href="css/edit-paper-form.css" rel="stylesheet">
	<link href="css/examing.css" rel="stylesheet">
	<link href="css/test.css">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	<link href="css/font-awesome.min.css" rel="stylesheet">
<%!StudentDTO student = new StudentDTO(); %>
<%if(session.getAttribute("student")==null){
	response.sendRedirect("stu_login");
} else{
	student = (StudentDTO)session.getAttribute("student");
}%>
  </head>
  <body>
	  <h4 class="time-tips"><span  class="fa fa-clock-o">&nbsp;</span>考试剩余：<sapn id="rest_time"></sapn></h4>
	<div class="exam-container">
		<input type="hidden" id="exam_id" value="<%=request.getParameter("exam_id")%>">
		<input type="hidden" id="exam_date" value="<%=request.getParameter("exam_date")%>">
		<div class="exam-title">
			<h4 id="exam_title"><%=request.getParameter("exam_name")%></h4>
			
			<h5>课程：<span id="course_name"><%=request.getParameter("course_name")%></span></h5>
			<h5>试卷：<span id="paper_title"></span></h5>
			<h5>考试时长：
				<span id="paper_time"></span>
			</h5>
			<h5>总分：<span id="paper_score"></span><p style="float:right;margin-right:40px;"><i>学号：<%=student.getNum() %></i>&nbsp;<i>姓名：<%=student.getName() %></i></p></h5>
			
		</div>
		<div class="exam-body-container">
			<form id="answer_commit_form">
				<div class="exam-body">
				</div>
			
				<div class="exam-bottom-bar">
					<button type="submit" class="btn btn-primary btn-sm" style="margin-left:300px;">交卷</button>
				</div>
			</form>
			<!-- <div class="exam-bottom-bar">
				<button class="btn btn-primary btn-sm">交卷</button><font style="margin-left:245px;" color="blue">考试剩余：35</font>
			</div> -->
		</div>
	</div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="js/jquery-1.12.4.js"></script>
    <script src="js/jquery-form.js" type="text/javascript"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="js/bootstrap.min.js"></script>
    <script src="js/bootstrap-select.min.js"></script>
	<script src="js/bootstrap-table.js"></script>
	<script src="js/bootstrap-table-zh-CN.js"></script>
	<script type="text/javascript" src="js/my-js.js"></script>
	<script src="js/stu/examing.js"></script>
  </body>
</html>